package models

import (
	"kop/libs/database"
	"kop/modules/sign_in/entity"
	"time"
)

func GetNotice() entity.Notice {

	var data entity.Notice
	database.DB.Where("time < ?", time.Now()).Order("time DESC").First(&data)
	return data
}
